# -*- coding: utf-8 -*-
import unittest
import os
import os.path
import glob
import sys
from pyrost.pyrost import \
     Encoding, Flag, LogLevel, Rc, RecUnit, SelMode, SelOperator, \
     SnipFlag, SnipMapping, SortMode, SymFlag, \
     Index, PyrostError, Query, Records, Snip, Sym, Values, WeightVector


TEST_DIR = ''
TEST_INDEX = ''

class IndexTestCase(unittest.TestCase):
    def setUp(self):
        self._idx = Index()

    def tearDown(self):
        self._idx.close()

    def testCreate(self):
        self._idx.create(TEST_INDEX,
                         Flag.Ngram,
                         16,
                         Encoding.Utf8)

    def testOpen(self):
        self.assert_(False)

    def testBasic(self):
        self.assert_(False)


if __name__ == '__main__':
    TEST_DIR = os.path.join(
        os.path.dirname(os.path.abspath(sys.argv[0])), 'data')
    TEST_INDEX = os.path.join(TEST_DIR, "index")
    
    suite = unittest.TestSuite()

    suite.addTest(IndexTestCase('testCreate'))
    suite.addTest(IndexTestCase('testBasic'))
    suite.addTest(IndexTestCase('testOpen'))
    
    unittest.TextTestRunner(verbosity=2).run(suite)
